
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Welcome</title>
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <!-- <meta name="viewport" content="user-scalable=no, initial-scale=0.5 width=device-width, minimal-ui" /> -->
    <meta name="viewport" content="user-scalable=no, initial-scale=0.5, minimal-ui, width=360" id="viewport" />
    <meta http-equiv="cleartype" content="on">
    <meta name="apple-mobile-web-app-status-bar-style" content="yes" />        
    <!-- <link rel="shortcut icon" href="/favicon.png" type="image/x-icon" /> -->
    <link rel="stylesheet" href="../css/mobile/font-awesome.min.css">
    <link rel="stylesheet" href="../css/mobile/mobile-login.css" />
    <link rel="stylesheet" href="../css/mobile/mobile-homescreen-popup.css" />
<script language="javascript" src="../js/jquery-1.8.3.js"></script>
<script language="javascript" src="../js/md5.js"></script>
    
  </head>
  <script language="javascript">
    $(document).ready(function() { 
      if (screen.width > 360 && !navigator.userAgent.match("UCBrowser") && navigator.userAgent.match("Android")) {
        $('body').css("zoom","0.5")
      }

	$("#username").focus();
	$("#password").blur(function(){
	$("#pass").val(men_md5_password($("#password").val()));	
	});
	$("#imgcode").click();
    });
function changeimg(){
    $("#imgcode").attr("src","../imgcode.php?act=init&"+Math.random());
}

function checkform(){
    if($("#username").val()==''){
	     alert("請輸入帳號");
		 $("#username").focus();
		 return false;
	}else if($("#password").val()==''){
	     alert("請輸入密碼");
		 $("#password").focus();
		 return false;
	}else if($("#code").val()==''){
	     alert("請輸入驗證碼");
		 $("#code").focus();
		 return false;
	}else{
		return true;
	}
}
  </script>
  <body>
<div class="container"> 
  <form  method='post' id='form' name="form"  onsubmit="return checkform();"  >
  <div class="logo" style="text-align:center">
    <!--<img src="/nomain88/imgs/logo.png" width="350" height="122" alt=""/> -->
    <!--<img src="../css/mobile/img/blue/mobilelogo.jpg" width="350" height="122" alt=""/>-->
    {+if $moneytype==1+}<img src="./img/logo.png" alt="" border=0 />
    {+else+}
    <BR> <BR> <BR>
    {+/if+}
  </div>
    <div class="toptextfield">
      <input class="textfieldtop cn" type="text"  id='username' name="username" placeholder="用户名">
    </div>
    <div  class="btmtextfield">
      <input class="textfieldbtm cn" type="password" name="password" id='password' placeholder="密码"><input type="hidden" name='pass' id='pass' value="" />
    </div>
    <div class="capchatextfield">
      <input type="text" class="textfieldcapcha cn"  id='code' name="code" placeholder="验证码" maxlength="4" pattern="\d*">
      <div class="capchaposition"><img src="" alt='请刷新' class="v-img"  onerror="flag = false" onload='flag = false' onClick="changeimg()" id=imgcode width="165" height="66"  />
                <img src="../imgn/mobi/reflash.png" onClick="changeimg()" /></div>
    </div>
    <div class="submitgap">
      <input name="submit" type="submit" class="submitbtn cn" id="submit" value="登录"><input type="hidden" name="xtype" value="login" />
    </div>
    </form>
    {+if $moneytype==1+}
    <div class="registergap" >
      <a href="reg.php" class="registerbtn cn reg" id="submit" value="注册">注册</a>
      <a href="reg.php?guest=guest" class="guestbtn cn guest" id="submit" value="游客">游客</a>
    </div>
    {+/if+}
    <div class="login_logo">
      <div>
      <div class="gap100"></div>
<button class="btn btn-primary btn-block" onclick="window.location.href='../uxj/';" style="
    width: 250px;
    height: 50px;
    font-size: 25px;
    margin-top: 20px;
    border-radius: 25px;
">
            电脑版
          </button>
        <!-- <a href="http://www.sg-win.com" target="_blank"><img src="/beta/login1/images/SG-win.png" /></a> -->
      </div>
    </div>
     <div class="registergap">
      <div>Copyright © 2014-2015 All Rights Reserved.</div>
    </div>
</div>

</body>
</html>